<?php

function include_recursively( $path ) {
	$dh = opendir( $path );
	while( $item = readdir( $dh ) ) {
		if( $item[0] == '.' ) continue;
		$item = $path . '/' . $item ;
		if( substr($item, -4) == '.css' ) {
			echo file_get_contents( $item );
			continue;
		}
		if( is_dir( $item ) ) {
			include_recursively( $item );
		}
	}
}

header( 'Content-Type: text/css' );
include_recursively( __DIR__ );

